﻿using System;
 using System.Collections.Generic;
 using System.Text;
 using NGuestBook.Entity;
 
 namespace NGuestBook.IBLL
{
    /**//// <summary>
    /// 业务逻辑层接口-留言
    /// </summary>
    public interface IMessageBLL
    {
        /**//// <summary>
        /// 添加留言
        /// </summary>
        /// <param name="message">新留言实体类</param>
        /// <returns>是否成功</returns>
        bool Add(MessageInfo message);

        /**//// <summary>
        /// 删除留言
        /// </summary>
        /// <param name="id">欲删除的留言的ID</param>
        /// <returns>是否成功</returns>
        bool Remove(int id);

        /**//// <summary>
        /// 回复留言
        /// </summary>
        /// <param name="id">要回复的留言的ID</param>
        /// <param name="reply">回复信息</param>
        /// <returns>是否成功</returns>
        bool Revert(int id, string reply);

        /**//// <summary>
        /// 将留言通过验证
        /// </summary>
        /// <param name="id">通过验证的留言的ID</param>
        /// <returns>是否成功</returns>
        bool Pass(int id);

        /**//// <summary>
        /// 按分页取得留言信息
        /// </summary>
        /// <param name="pageSize">每页显示几条留言</param>
        /// <param name="pageNumber">当前页码</param>
        /// <returns>留言实体类集合</returns>
        IList<MessageInfo> GetByPage(int pageSize,int pageNumber);
    }
}